//
//  ALPHotRecommendsControllerCell.m
//  AlpFM
//
//  Created by dllo on 16/1/27.
//  Copyright © 2016年 Alp. All rights reserved.
//

#import "ALPHotRecommendsControllerCell.h"

@interface ALPHotRecommendsControllerCell ()
@property (nonatomic, strong) UIImageView *imageV;
@property (nonatomic, strong) UILabel *describeLabel; //长的标题
@property (nonatomic, strong) UILabel *titleLabel;    //小标题
@end

@implementation ALPHotRecommendsControllerCell


-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self creat];
    }
    return self;
}
-(void)creat{
    self.imageV = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, 120)];
    [self.contentView addSubview:self.imageV];
    
    self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 104, self.contentView.frame.size.width, 16)];
    self.titleLabel.backgroundColor = [UIColor blackColor];
    self.titleLabel.alpha = 0.5;
    self.titleLabel.textAlignment = NSTextAlignmentLeft;
    self.titleLabel.textColor = [UIColor whiteColor];
    self.titleLabel.font = [UIFont boldSystemFontOfSize:13];
    [self.contentView addSubview:self.titleLabel];
    
    self.describeLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 120 , self.contentView.frame.size.width, 60)];
    self.describeLabel.numberOfLines = 2;
    self.describeLabel.font = [UIFont boldSystemFontOfSize:15];
    [self.contentView addSubview:self.describeLabel];

    
}





-(void)setModel:(ALPHotRecommendsThreeModel *)model{
    _model = model;
    [self.imageV sd_setImageWithURL:[NSURL URLWithString:_model.coverLarge] placeholderImage:nil];
    self.titleLabel.text = _model.title;
    self.describeLabel.text = _model.trackTitle;
    
    
    
}
@end
